package com.example.yilanchatserver.application.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * 监控控制器
 *
 * @author ziyu
 * @date 2023/9/22
 */
@RestController
@RequestMapping("/chat/actuator")
public class ActuatorController {

    /**
     * 健康检测
     *
     * @return
     */
    @GetMapping("/health")
    public Map<String, Object> health() {
        Map<String, Object> result = new HashMap();
        result.put("status", "UP");
        return result;
    }

}
